define(["servers"], function (servers) {
    return  Backbone.Model.extend({
        defaults: function () {
            return {};
        },
        getInfo:function(){
            var self = this;
            servers.account.info(function(resInfo){
                self.set({dataAccountInfo:resInfo});
                self.trigger('bind:Info');
            });
        },
        login:function(data){
            var self = this;
            servers.account.login(data,function(res){
                self.set({dataLogin:res});
                self.trigger('login:Info');
            });
        },
        checkLogin:function(){
            var self = this;
            servers.account.check(function(res){
                self.set({dataCheck:res});
                self.trigger('check:Info');
            });
        },
        logout:function(){
            var self = this;
            servers.account.logout(function(res){
                self.set({dataLogout:res});
                self.trigger('logout:Info');
            });
        }
    });
});